@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--primary-color);
}

.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 250px;
    overflow-y: auto;
    height: 100vh;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .nav-link span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }

    .logo {
        padding: 0;
        display: flex;
        justify-content: center;
    }
}

:root {
    --primary-color: #6B7FD7;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

.header {
    background: rgba(10, 10, 10, 0.8);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-image {
    height: 35px;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icon {
    color: var(--text-color);
    font-size: 1.2rem;
}

.users-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.users-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th {
    font-weight: 600;
    background: rgba(107, 127, 215, 0.1);
}

.users-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 0.25rem;
    font-size: 1rem;
}

.edit-btn {
    color: #4CAF50;
}

.delete-btn {
    color: #f44336;
}

@media (max-width: 768px) {
    .users-content {
        padding: 0 1rem;
    }
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
}

.overlay-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #404040;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

/* Cart Overlay Styles */
.cart-overlay {
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-content {
    text-align: left;
}

.user-info {
    margin-bottom: 2rem;
}

.cart-items {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}